import request from '@/utils/request'


// 查询部门下拉树结构
export function knownLedgeLabelTreeSelect() {
  return request({
    url: '/questionbank/knowledgeLabel/tree',
    method: 'get'
  })
}

// 查询知识点标签列表
export function listKnowledgeLabel(query) {
  return request({
    url: '/questionbank/knowledgeLabel/list',
    method: 'get',
    params: query
  })
}

// 查询知识点标签详细
export function getKnowledgeLabel(labelId) {
  return request({
    url: '/questionbank/knowledgeLabel/' + labelId,
    method: 'get'
  })
}

// 新增知识点标签
export function addKnowledgeLabel(data) {
  return request({
    url: '/questionbank/knowledgeLabel',
    method: 'post',
    data: data
  })
}

// 修改知识点标签
export function updateKnowledgeLabel(data) {
  return request({
    url: '/questionbank/knowledgeLabel',
    method: 'put',
    data: data
  })
}

// 删除知识点标签
export function delKnowledgeLabel(labelId) {
  return request({
    url: '/questionbank/knowledgeLabel/' + labelId,
    method: 'delete'
  })
}
